package org.jeecg.modules.controller.register;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class PayOrderVO {
    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**订单号，唯一*/
    @Excel(name = "订单号，唯一", width = 15)
    @ApiModelProperty(value = "订单号，唯一")
    private String orderCode;
    /**医生ID*/
    @Excel(name = "医生ID", width = 15)
    @ApiModelProperty(value = "医生ID")
    private String doctorId;
    /**患者ID*/
    @Excel(name = "wxUserinfoId ", width = 32)
    @ApiModelProperty(value = "wxUserinfoId ")
    private java.lang.String wxUserinfoId;
    /**第三方订单号*/
    @Excel(name = "第三方订单号", width = 15)
    @ApiModelProperty(value = "第三方订单号")
    private java.lang.String thirdOrderCode;
    /**支付金额，单位分*/
    @Excel(name = "支付金额，单位分", width = 15)
    @ApiModelProperty(value = "支付金额，单位分")
    private Double amount;
    /**支付完成时间*/
    @Excel(name = "支付完成时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "支付完成时间")
    private java.util.Date endPayTime;
    /**开始支付时间*/
    @Excel(name = "开始支付时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始支付时间")
    private Date startPayTime;
    /**订单状态 0 未支付  1支付成功 2支付失败 3 已退款*/
    @Excel(name = "订单状态 0 未支付  1支付成功 2支付失败 3 已退款", width = 15)
    @ApiModelProperty(value = "订单状态 0 未支付  1支付成功 2支付失败 3 已退款")
    private Integer status;
    /**商品类型  1，医生图文消息  2，医生视频消息*/
    @Excel(name = "商品类型  1，医生图文消息  2，医生视频消息", width = 15)
    @ApiModelProperty(value = "商品类型  1，医生图文消息  2，医生视频消息")
    private Integer shopType;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "订单类型   1支付 2退款")
    private Integer orderType;

    @ApiModelProperty(value = "关联id")
    private String relationId;
    private String openid;
    private String medicalId;//病例Id
    private String patientName;//就诊人
    private String doctorName;
    private String orderTime;
    private String code; //获取openid的code
}
